package com.zzzyh.forumsystemclient.dao;

import com.zzzyh.forumsystemclient.model.Article_Board;
import com.zzzyh.forumsystemclient.model.Board;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Article_BoardMapper {
    int insert(Article_Board row);

    int insertSelective(Article_Board row);

    Article_Board selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article_Board row);

    int updateByPrimaryKey(Article_Board row);

    Article_Board getBoardArticle(@Param("articleId") Long articleId,@Param("boardId") Long boardId);

    List<Article_Board> getBoardsByArticleId(Long articleId);

    List<Long> getArticleIdsByBoardId(Long boardId);
}